<?

REQUIRE ($tmppath."include/login.php");
REQUIRE ($tmppath."$templates/up.php");

REQUIRE ($tmppath."protect/connect.php");


$query ="SELECT alliance_name,alliance_date_crea, alliance_description,alliance_charte,alliance_cacher,alliance_createur,alliance_site,alliance_icon,alliance_ami, alliance_ennemis FROM sdalliance WHERE alliance_id=$alliance";
//echo $query;
$resultat=mysql_query($query);
$row = mysql_fetch_array($resultat);
$nom =$row[0];			
$date=$row[1];
$description=$row[2];
$charte=$row[3];
$cacher=$row[4];
$createur=$row[5];
$web=$row[6];
$image=$row[7];
$ami=$row[8];
$ennemis=$row[9];

$description=htmlentities($description);
$description=nl2br($description);
$charte=htmlentities($charte);
$charte=nl2br($charte);

$lien2="window.open('../../include_l.php?p=vis_alliance&alliance=$alliance&$SID', 'unite', 'scrollbars=yes,status=no,top=0,left=0,width=430,height=500,copyhistory=0')";


?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Document sans titre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="middle" bordercolor="#000000"><img src="templates/default/ligne.png" width="390" height="35">
      <br>
      <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
        <tr> 
          <td width="38%"><div align="center"><? if ($image!="" ){echo "<img src=\" $image \"  >";}  ?> </div></td>
          <td width="62%"><div align="justify">
              <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                <tr valign="middle"> 
                  <td width="48%"> <div align="right"><font color="#FFFF00"><strong>Nom
                      :</strong></font></div></td>
                  <td width="52%"> <p><? echo "$nom" ?> </p></td>
                </tr>
                <tr valign="middle"> 
                  <td> <div align="right"><font color="#FFFF00"><strong>Site Web
                      :</strong></font></div></td>
                  <td> <p><? echo $web ?></p></td>
                </tr>
                <tr valign="middle"> 
                  <td> <div align="right"><font color="#FFFF00"><strong>Race :</strong></font></div></td>
                  <td> <p><? echo $race ?></p></td>
                </tr>
                <tr valign="middle"> 
                  <td> <div align="right"><font color="#FFFF00"><strong>Classe
                      : </strong></font></div></td>
                  <td> <p><? echo $classe ?></p></td>
                </tr>
                <tr valign="middle"> 
                  <td> <p align="right"><font color="#FFFF00"><strong>Niveau
                      :</strong></font></p></td>
                  <td><? echo $niv ?></td>
				    </tr>  <tr>
				  <?
				  IF ($userperso==$perso_id){
				  echo"<td><p align=\"right\"><font color=\"#FFFF00\"><strong>Point EXP :</strong></font></p></td>
                  <td>$exp</td>";
				  }
				  
				  ?>
				  
                </tr>


                </tr>
              </table>
              
            </div></td>
        </tr>
      </table> 
      <img src="templates/default/ligne.png" width="390" height="35"><br>
      <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
        <tr> 
          <td> <p align="center"><strong><u><font color="#FFFF00">Description :</font></u></strong></p>
            <p align="left"><? echo $description; ?></p>
            </td>
        </tr>
      </table>
	    <img src="templates/default/ligne.png" width="390" height="35"><br>
      <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
        <tr> 
          <td> <p align="center"><strong><u><font color="#FFFF00">Charte :</font></u></strong></p>
            <p align="left"><? echo $charte; ?></p>
            </td>
        </tr>
      </table>
      <img src="templates/default/ligne.png" width="390" height="35"> <br>


      </td>
  </tr>
</table>

</body>
</html>
